﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMS.Model;

namespace WMS.Repository.IRepository
{
    public interface IRoleRepository
    {
        Task<PageResult<RoleModel>> GetRolePagedListAsync(RoleQueryRequest request);

        Task<bool> AddRoleAsync(RoleModel roleModel);

        Task<RoleModel> GetRoleNameAsync(string roleName);


    }


    /// <summary>
    /// 用户查询请求
    /// </summary>
    public class RoleQueryRequest : PageRequest
    {
        public string? RoleName { get; set; }

        public byte? Status { get; set; }
    }
}
